package com.i2works.smartluolong.manage.service.admin;


import com.i2works.smartluolong.manage.entity.admin.AdminResDO;
import com.i2works.smartluolong.manage.entity.admin.AdminResQuery;
import com.i2works.smartluolong.utils.basecommon.BaseCommonService;
import com.i2works.smartluolong.utils.exception.ServiceException;

import java.util.List;
import java.util.Set;

/**
 * 管理员资源表业务实现接口
* @ClassName: IAdminResService 
* @Description: TODO
* @author koal koal@vip.qq.com
* @date 2015年11月3日 下午11:32:38 
*
 */
public interface IAdminResService extends BaseCommonService<AdminResQuery,AdminResDO> {

	/**
	 * 查询某用户的所有资源
	 */
	Set<AdminResDO> queryUserResList(AdminResQuery query) throws ServiceException;
	
	/**
	 * 查询资源树
	 */
	 List<AdminResDO> queryTreeList(AdminResQuery query) throws ServiceException;

	/**
	 * 查询资源下拉菜单
	 */
	List<AdminResDO> querySelect(AdminResQuery query) throws ServiceException;

	/**
	 * 返回某人所拥有的资源ID
	 */
	 AdminResDO queryHasChecked(AdminResQuery query) throws ServiceException;

}
